<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <script type="text/javascript" src="../../lib/html5shiv.js?rev=@@hash"></script>
    <script type="text/javascript" src="../../lib/respond.min.js?rev=@@hash"></script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../static/h-ui/css/H-ui.min.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/H-ui.admin.css" />
    <link rel="stylesheet" type="text/css" href="../../lib/Hui-iconfont/1.0.8/iconfont.css" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/skin/default/skin.css" id="skin" />
    <link rel="stylesheet" type="text/css" href="../../static/h-ui.admin/css/style.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/Project.css" />
    <!--[if IE 6]>
    <script type="text/javascript" src="../../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
    <script>DD_belatedPNG.fix('*');</script>
    <![endif]-->
    <link rel="stylesheet" type="text/css" href="../../ht-css/style-q.css" />
    <link rel="stylesheet" type="text/css" href="../../ht-css/custom.css" />
    <title>企业会员详情页</title>
    <style>

    </style>
    <!--地址添加样式-->
    <link rel="stylesheet" href="../../ht-css/replaceAddress/addAddress.css">
    <title>企业会员查看详情</title>
</head>
<body data-id="188" style="line-height: 2.6">
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页  <span class="c-gray en">&gt;</span>会员管理<span class="c-gray en">&gt;</span>普通客户<span class="c-gray en">&gt;</span>客户详情<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
<article class="page-container">
    <div id="tab_topnav" class="HuiTab">
        <!--基本信息-->
        <div class="tabCon bk-gray bg-1">
            <form method="post" >
                <!--客户基本信息-->
                <div class="bg-1 pb-10">
                    <div class="va-m pl-15 lh-50 f-16">
                        <strong>会员基本信息</strong>
                    </div>
                    <div class="line"></div>
                    <div class="lh-30 mb-10">
                        <table class="table_li mb-10 table">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10" >
                                        <label class="form-label f-l label-right w-60">账号：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="login_account"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-72">注册手机号：</label>
                                        <div class="formControls w-200 ml-10 lh-26" id="mobile_phone">

                                        </div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85">来源：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="registerPlatform"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">注册时间：</label>
                                        <div class="formControls w-200 ml-10 lh-26" id="register_time"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">邮箱：</label>
                                        <div class="formControls w50 ml-10 lh-26-1" ><span id="email"></span> <span class="ml-10 f-12 powerButton 246"><a onclick="modifymailbox()" >修改</a></span></div>
                                    </div>

                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10" style="margin-left: 22px;">
                                        <label class="form-label f-l label-right w-60">IP地址：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="register_ip"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10" style="margin-left: 35px;">
                                        <label class="form-label f-l label-right w-60">IP区域：</label>
                                        <div style="width: 150px" class="formControls w-150 ml-10 lh-26" id="register_addr"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">获客人员：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="groundPushName"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr>

                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">创建人员：</label>
                                        <div style="width: 150px" class="formControls w-150 ml-10 lh-26" id="create_user"></div>
                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
                <!--客户信息-->
                <div class="bg-1 pb-10">
                    <div class="va-m pl-15 lh-50 f-16">
                        <strong>客户信息</strong>
                    </div>
                    <div class="line"></div>
                    <div class="lh-30 mb-10">
                        <table class="table_li mb-10 table">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-100">客户代码：</label>
                                        <div style="width: 289px;" class="formControls w-150 ml-10 lh-26" id="customer_code"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-100" style="width: 112px;">客户名称：</label>
                                        <div class="formControls w-250 ml-10 lh-26" id="customer_name"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85" style="width: 108px;">客户归属：</label>
                                        <div class="formControls w-200 ml-10 lh-26" id="belongGroupName">

                                        </div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85" style="width: 108px;">销售主管：</label>
                                        <div class="formControls w-200 ml-10 lh-26" id="username">

                                        </div>
                                    </div>
                                </td>


                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85" style="width: 100px;">价格类型：</label>
                                        <div class="formControls w-200 ml-10 lh-26" id="priceType">

                                        </div>
                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
                <!--发票信息-->
                <div class="bg-1 pb-10">
                    <div class="va-m pl-15 lh-50 f-16">
                        <strong>发票信息</strong>
                    </div>
                    <div class="line"></div>
                    <div class="f-r mr-60">
                        <a onclick="generalvote()" id="General" class="f-12">编辑</a>
                    </div>
                    <span style="margin-left: 19px;font-weight: bolder;">普票信息</span>
                    <div class="lh-30 mb-10">
                        <table class="table_li mb-10 table">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">单位名称：</label>
                                        <div style="width: 252px;" class="formControls w-150 ml-10 lh-26" id="compfanyname"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label  class="form-label f-l label-right w-85">纳税人识别码：</label>
                                        <div  class="formControls w-200 ml-10 lh-26" id="taxpayefr_code">

                                        </div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85"></label>
                                        <div class="formControls w-200 ml-10 lh-26" >

                                        </div>
                                    </div>
                                </td>
                            </tr>

                            </thead>
                        </table>
                    </div>
                    <div class="f-r mr-60">
                        <a onclick="invoice_edit()" id="Increaseticket" class="f-12">编辑</a>
                    </div>

                    <span style="margin-left: 19px;font-weight: bolder;">增票信息</span>
                    <div class="lh-30 mb-10">
                        <table class="table_li mb-10 table">
                            <thead class="text-l">
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">单位名称：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="companyname"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85">纳税人识别码：</label>
                                        <div style="width: 250px;" class="formControls w-200 ml-10 lh-26" id="taxpayer_code">

                                        </div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-100">注册地址：</label>
                                        <div style="width: 320px;" class="formControls w-150 ml-10 lh-26" id="reg_address"></div>
                                    </div>
                                </td>
                            </tr>
                            <tr>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-60">注册电话：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="reg_telephone"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-85">开户银行：</label>
                                        <div class="formControls w-150 ml-10 lh-26" id="open_account_bank"></div>
                                    </div>
                                </td>
                                <td class="col-4-1 text-l">
                                    <div class="row ml-10">
                                        <label class="form-label f-l label-right w-100">银行账户：</label>
                                        <div style="width: 300px" class="formControls w-150 ml-10 lh-26" id="bank_account"></div>
                                    </div>
                                </td>
                            </tr>
                            </thead>
                        </table>
                    </div>
                </div>
            </form>
        </div>
        </form>
    </div>
    </div>
    <div id="invoice" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
        <div class="modal-dialog">
            <div class="modal-content radius" style="height:480px;width:625px;">
                <div class="modal-header"  >
                    <h3 class="modal-title"><b class="addressTitle">增票信息</b></h3>
                    <a class="close" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                </div>
                <input type="hidden" class="ship_add_id">
                <div class="pop_win pop_receiver"  >
                    <div class="info" >
                        <div class="clearfix">
                            <label style="width:120px;"><span class="c-red pr-5 f-l" style="margin-left: 48px;">*</span>单位名称：</label><input name="" maxlength="50" id="companyname2" type="text">
                        </div>
                        <div class="clearfix" style="padding-top: 0">
                            <div class="clearfix area">
                                <label style="width:120px;"><span class="c-red pr-5 f-l" style="margin-left: 25px;">*</span>纳税人识别码：</label><input name="" type="text" id="taxpayer_code2" onKeyUp="value=value.replace(/[\W]/g,'')" maxlength="20">
                            </div>
                        </div>
                        <div class="clearfix">
                            <label style="width:120px;">注册地址：</label><input name="" type="text" id="reg_address2" oninput="checkMaxIut(this)">
                        </div>

                        <div class="clearfix">
                            <label style="width:120px;">注册电话：</label><input name="" type="text"  id="reg_telephone2"  onkeyup="this.value=this.value.replace(/[^0-9-]/g,'')" ><!--oninput="checkMaxIut2(this)"-->
                        </div>

                        <div class="clearfix">
                            <label style="width:120px;">开户银行：</label><input name="" type="text" id="open_account_bank2" oninput="checkMaxIut(this)">
                        </div>
                        <div class="clearfix">
                            <label style="width:120px;">银行账户：</label><input name="" id="bank_account2" type="text" maxlength="20">
                        </div>
                    </div>
                    <div class="text-c pt-30"><a onclick="savecommom_edit2()" class="btn btn-secondary radius size-L">确定</a><a onclick="close_model()" class="btn radius size-L ml-10">取消</a></div>
                </div>

            </div>
        </div>
    </div>
    <form id="form-search6">
        <div id="generalvote" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="ture" style="border-radius: 8px;">
            <div class="modal-dialog">
                <div class="modal-content radius" style="    height: 312px;width: 544px;">
                    <div class="modal-header"  >
                        <h3 class="modal-title"><b class="addressTitle">普票信息</b></h3>
                        <a class="close" onclick="guanbi2()" style="margin-right: 5px;width: 22px;height: 22px;margin-top: 5px" data-dismiss="modal" aria-hidden="true" >×</a>
                    </div>
                    <input type="hidden" class="ship_add_id">
                    <div class="pop_win pop_receiver"  style="width: 544px;height: 160px;">
                        <div class="info" >
                            <div class="clearfix">
                                <label><span class="c-red pr-5 f-l" style="margin-left: 29px;">*</span>单位名称：</label><input name="" autocomplete="off" type="text" maxlength="50" placeholder="请输入单位名称" id="unitname" class="loginaccount" >
                            </div>
                            <div class="clearfix">
                                <label><span class="c-red pr-5 f-l">*</span>纳税人识别号：</label><input name="" autocomplete="off" type="text" placeholder="请输入纳税人识别号" id="identificationnumber" class="identificationnumber" onKeyUp="value=value.replace(/[\W]/g,'')" maxlength="20">
                            </div>

                        </div>
                    </div>
                    <div class="text-c" style="padding-top: 6px;"><a onclick="Determine()" class="btn btn-secondary radius size-L">确定</a><a onclick="close_generalvote()" class="btn radius size-L ml-10">取消</a></div>
                </div>

            </div>
        </div>
    </form>

</article>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="../../lib/jquery/1.9.1/jquery.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/layer/2.4/layer.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui/js/H-ui.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../static/h-ui.admin/js/H-ui.admin.js?rev=@@hash"></script>
<!--/_footer 作为公共模版分离出去-->
<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="../../lib/jquery.jedate.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/My97DatePicker/4.8/WdatePicker.js?rev=@@hash"></script>
<!--表单验证-->
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/jquery.validate.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/validate-methods.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/jquery.validation/1.14.0/messages_zh.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/Validform/5.3.2/Validform_v5.3.2_min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/datatables/1.10.0/jquery.dataTables.min.js?rev=@@hash"></script>
<script type="text/javascript" src="../../lib/laypage/1.2/laypage.js?rev=@@hash"></script>
<script src="../../ht-js/public.js?rev=@@hash"></script>
<!--验证token-->
<script src="../../ht-js/verifyToken.js?rev=@@hash"></script>
<!--<script src="../../ht-js/Project.js?rev=@@hash"></script>-->
<!--引入分页-->
<link rel="stylesheet" href="../../lib/pagination/pagination.css">
<script src="../../lib/pagination/jquery.pagination.js?rev=@@hash"></script>
<script type="text/javascript" src="../../ht-js/frame/doT.min.js?rev=@@hash"></script>
<script src="../../ht-js/Customer/companyCustomer_see.js?rev=@@hash"></script>
<!--权限控制-->
<script type="text/javascript" src="../../ht-js/power.js?rev=@@hash"></script>

<script>

    $(function() {
        $("#brandSearchForm").Validform({
            tiptype: 2,
            callback: function(form) {
                brand_list(1, 50, $("#brandName").val());
                return false;
            }
        });
        $("#cxManage").Validform({
            tiptype: 2,
            callback: function(form) {
                cx_list();
                return false;
            }
        });
    })
    function timeSet(startEl,endEl,timeFormat){
        /*startEl=>开始时间Input的id，endEl=>结束时间Input的id，时间格式（YYYY-MM-DD hh:mm:ss  YYYY年MM月DD日 hh:mm:ss）*/
        /*时间设置*/
        var start = {
            format: timeFormat,
            maxDate: $.nowDate(),
            okfun: function(obj){
                end.minDate = obj.val; //开始日选好后，重置结束日的最小日期
            }
        };
        var end = {
            format: timeFormat,
            maxDate: $.nowDate(),
            okfun: function(obj){
                start.maxDate = obj.val; //将结束日的初始值设定为开始日的最大日期
            }
        };
        $.jeDate(startEl,start);
        $.jeDate(endEl,end);
    }
    timeSet("#timemin","#timemax","YYYY-MM-DD hh:mm:ss");

    jQuery.Huitab = function(tabBar, tabCon, class_name, tabEvent, i) {
        var $tab_menu = $(tabBar);
        // 初始化操作
        $tab_menu.removeClass(class_name);
        $(tabBar).eq(i).addClass(class_name);
        $(tabCon).hide();
        console.log(tabCon)
        $(tabCon).eq(i).show();
        $('#tableId').hide()
        $tab_menu.bind(tabEvent, function() {
            $tab_menu.removeClass(class_name);
            console.log($(this).text())
            if($(this).text()=='基本信息'){
                $('#tableId').hide()
            }else {
                $('#tableId').show()
            }
            $(this).addClass(class_name);
            var index = $tab_menu.index(this);
            $(tabCon).hide();
            $(tabCon).eq(index).show();
            // $('#tableId').show()
        });
    }

    $(function() {
        $.Huitab("#tab_topnav .tabBar span", "#tab_topnav .tabCon", "current", "click", "0")
    });

    function reload() {
        //location.replace(location.href);
        window.location.reload(location.href);
    }



    var id = getQueryString('member_id');

    $(function(){
        $("#form-search").Validform({
            tiptype:2,
            callback:function(form){
                getList(1)
                return false;
            }
        });
    })
    $(function(){
        $("#form-search1").Validform({
            tiptype:2,
            callback:function(form){
                getList(1)
                return false;
            }
        });
    })
    /*form表单重置函数*/
    function resetDiv() {
        var divEl = document.querySelectorAll(".Validform_checktip span")
        for (var i = 0; i < divEl.length; i++) {
            divEl[i].innerHTML = ""
        }
        /*重置分类中的级别*/
        goodslist_cantegory_id = "";
        category_id_of_search = "";//采销中的分类id
        category_code_of_search = "";//采销中的分类code
        /*图片中三级分类联动清空*/
        oneCategoryId = "";
        twoCategoryId = "";
        threeCategoryId = "";
        /*清空联动下拉框*/
        $("#classUlP1").html("");
        $("#classUlP2").html("");
        $("#classUlP3").html("");
        $("#img-classUl1").html("");
        $("#img-classUl2").html("");
        $("#img-classUl3").html("");
        var cer = "<option value=''>请选择收货位置</option>"
        $("#getPlace").html(cer);
    }

    //限制字符
    var len
    var Preser
    var common=50//要限制输入的字数
    function checkMaxIut(me) {
        var text=$(me).val()
        strlen(text)
        if(len>common){
            $(me).val(Preser)
        }else {
            Preser=$(me).val()
        }
    }
    function strlen(str){
        len = 0;
        for (var i=0; i<str.length; i++) {
            var c = str.charCodeAt(i);
            //单字节加1
            if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
                len++;
            } else {
                len+=2;
            }
        }
        return len;
    }

    //限制字符
    var len2
    var Preser2
    var common2=11//要限制输入的字数
    function checkMaxIut2(me) {
        var text=$(me).val()
        strlen2(text)
        if(len2>common2){
            $(me).val(Preser2)
        }else {
            Preser2=$(me).val()
        }
    }
    function strlen2(str){
        len2 = 0;
        for (var i=0; i<str.length; i++) {
            var c = str.charCodeAt(i);
            //单字节加1
            if ((c >= 0x0001 && c <= 0x007e) || (0xff60<=c && c<=0xff9f)) {
                len2++;
            } else {
                len2+=2;
            }
        }
        return len2;
    }
</script>
</body>
</html>